from django.contrib import admin
from django.urls import path
from api import views
from django.conf.urls import url

urlpatterns = [
    path('admin/', admin.site.urls),

    #CBV的路由
    url(r'^api/v1/auth/$',views.authView.as_view()),
    url(r'^api/v1/userinfo/$',views.userInfoView.as_view()),
    url(r'^api/v1/tableinfo/$',views.tableInfoView.as_view()),
    url(r'^api/v1/attributeinfo/$', views.attributeInfoView.as_view()),


    #FBV的路由
    url(r'^api/v1/get_allTableName/$', views.get_allTableName),
    url(r'^api/v1/get_attributes_oneTable/$', views.get_attributes_oneTable),
    #url(r'^api/v1/get_DFjson/$', views.get_DFjson),
    url(r'^api/v1/get_action/$', views.get_action),
    url(r'^api/v1/delete_action/$', views.delete_action),
    url(r'^api/v1/modify_action/$', views.modify_action),

    #数据预处理
    url(r'^api/v1/NullHandler/$', views.NullHandler),
    url(r'^api/v1/OutliersHandler/$', views.OutliersHandler),
    url(r'^api/v1/DataTransforming/$', views.DataTransforming),
    url(r'^api/v1/DataDiscretize/$', views.DataDiscretize ),
    url(r'^api/v1/TextProcesser/$', views.TextProcesser ),

    #特征工程
    # TODO


]
